package Data;

/**
 *
 * @author Justin
 */
public class ForRentBO extends PhysicalProductBO{
    
    private String id;
    private int TimesRented;
    private String CurrentRental;   //<-- the id of the current rental if it is being rented, otherwise it's null
    /** Creates a new instance of ForRentBO */
    public ForRentBO(String id) {
        this.id = id;
    }

    public String getId() {            //gets the id, inherited from abstract RevenueSourceBO
        return id;
    }

    public void setId(String id) {      //sets the id
        this.id = id;
    }

    public int getTimesRented() {       //gets the number of times the item has been rented
        return TimesRented;
    }

    public void setTimesRented(int TimesRented) {      //sets the number of times the item has been rented
        this.TimesRented = TimesRented;
    }

    public String getCurrentRental() {         //gets the current rental id, if the item is currently being rented
        return CurrentRental;
    }

    public void setCurrentRental(String CurrentRental) {  //sets the current rental id when a new rental is created
        this.CurrentRental = CurrentRental;
    }
    
}
